package com.acyouzi.wangyi;

import java.util.Scanner;

/**
 * 17/9/25 16:22
 *
 * @author sunxu
 */
public class Main2 {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int x = sc.nextInt();
    long all = 9;
    for (int i = 1; i < n; i++) {
      all = all * 9;
    }
    if (x > 9 * n){
      System.out.println(0);
    }
    int tmp = x - n+1;
    if (tmp < 0){
      System.out.println(1);
      return;
    }
    int sum = 0;
    int res = 0;
    for (int i = 0; i < tmp; i++) {
      sum += (i+1);
      res += sum;
    }
    System.out.println(all - res + "/" + all);
  }
}
